package cn.ty.comm.dict.entity;

import java.time.LocalDateTime;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

/**
 * 数据字典
 *
 * @author summit
 * @since 2021/6/27 17:33
 */
@Data
@Entity
@Table(name = "sys_biz_dict", schema = "sys")
public class SysBizDict {
	/** 主键 */
	@Id
	@GenericGenerator(name = "snowflake-id", strategy = "cn.ty.utils.GenerateSnowflakeId")
	@GeneratedValue(generator = "snowflake-id")
	private Long id;

	/** 上级代码 */
	private String parentCode;

	/** 上级代码描述 */
	private String parentDesc;

	/** 字典编码 */
	private String dictCode;

	/** 字典名称 */
	private String dictName;

	/** 字典顺序 */
	private Integer dictSort;

	/** 备注 */
	private String dictNote;

	/** 字典状态 */
	private String dictStatus;

	/** 创建时间 */
	private LocalDateTime regTime;

	/** 修改时间 */
	private LocalDateTime modTime;

}
